home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / lib / ldscripts / elf_l1om.xc < prev    next >
Text File  |  2009-10-29  |  8KB  |  213 lines

  1. /* Script for -z combreloc: combine and sort reloc sections */
  2. OUTPUT_FORMAT("elf64-l1om", "elf64-l1om",
  3.           "elf64-l1om")
  4. OUTPUT_ARCH(l1om)
  5. ENTRY(_start)
  6. SEARCH_DIR("/usr/x86_64-linux-gnu/lib");
  7. SECTIONS
  8. {
  9.   /* Read-only sections, merged into text segment: */
  10.   PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x400000)); . = SEGMENT_START("text-segment", 0x400000) + SIZEOF_HEADERS;
  11.   .interp         : { *(.interp) }
  12.   .note.gnu.build-id : { *(.note.gnu.build-id) }
  13.   .hash           : { *(.hash) }
  14.   .gnu.hash       : { *(.gnu.hash) }
  15.   .dynsym         : { *(.dynsym) }
  16.   .dynstr         : { *(.dynstr) }
  17.   .gnu.version    : { *(.gnu.version) }
  18.   .gnu.version_d  : { *(.gnu.version_d) }
  19.   .gnu.version_r  : { *(.gnu.version_r) }
  20.   .rela.dyn       :
  21.     {
  22.       *(.rela.init)
  23.       *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
  24.       *(.rela.fini)
  25.       *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
  26.       *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
  27.       *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
  28.       *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
  29.       *(.rela.ctors)
  30.       *(.rela.dtors)
  31.       *(.rela.got)
  32.       *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
  33.       *(.rela.ldata .rela.ldata.* .rela.gnu.linkonce.l.*)
  34.       *(.rela.lbss .rela.lbss.* .rela.gnu.linkonce.lb.*)
  35.       *(.rela.lrodata .rela.lrodata.* .rela.gnu.linkonce.lr.*)
  36.       PROVIDE_HIDDEN (__rel_iplt_start = .);
  37.       PROVIDE_HIDDEN (__rel_iplt_end = .);
  38.       PROVIDE_HIDDEN (__rela_iplt_start = .);
  39.       *(.rela.iplt)
  40.       PROVIDE_HIDDEN (__rela_iplt_end = .);
  41.     }
  42.   .rela.plt       :
  43.     {
  44.       *(.rela.plt)
  45.     }
  46.   .init           :
  47.   {
  48.     KEEP (*(.init))
  49.   } =0x90909090
  50.   .plt            : { *(.plt) }
  51.   .iplt           : { *(.iplt) }
  52.   .text           :
  53.   {
  54.     *(.text.unlikely .text.*_unlikely)
  55.     *(.text .stub .text.* .gnu.linkonce.t.*)
  56.     /* .gnu.warning sections are handled specially by elf32.em.  */
  57.     *(.gnu.warning)
  58.   } =0x90909090
  59.   .fini           :
  60.   {
  61.     KEEP (*(.fini))
  62.   } =0x90909090
  63.   PROVIDE (__etext = .);
  64.   PROVIDE (_etext = .);
  65.   PROVIDE (etext = .);
  66.   .rodata         : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
  67.   .rodata1        : { *(.rodata1) }
  68.   .eh_frame_hdr : { *(.eh_frame_hdr) }
  69.   .eh_frame       : ONLY_IF_RO { KEEP (*(.eh_frame)) }
  70.   .gcc_except_table   : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) }
  71.   /* Adjust the address for the data segment.  We want to adjust up to
  72.      the same address within the page on the next page up.  */
  73.   . = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) & (CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
  74.   /* Exception handling  */
  75.   .eh_frame       : ONLY_IF_RW { KEEP (*(.eh_frame)) }
  76.   .gcc_except_table   : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
  77.   /* Thread Local Storage sections  */
  78.   .tdata      : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
  79.   .tbss          : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
  80.   .preinit_array     :
  81.   {
  82.     PROVIDE_HIDDEN (__preinit_array_start = .);
  83.     KEEP (*(.preinit_array))
  84.     PROVIDE_HIDDEN (__preinit_array_end = .);
  85.   }
  86.   .init_array     :
  87.   {
  88.      PROVIDE_HIDDEN (__init_array_start = .);
  89.      KEEP (*(SORT(.init_array.*)))
  90.      KEEP (*(.init_array))
  91.      PROVIDE_HIDDEN (__init_array_end = .);
  92.   }
  93.   .fini_array     :
  94.   {
  95.     PROVIDE_HIDDEN (__fini_array_start = .);
  96.     KEEP (*(.fini_array))
  97.     KEEP (*(SORT(.fini_array.*)))
  98.     PROVIDE_HIDDEN (__fini_array_end = .);
  99.   }
  100.   .ctors          :
  101.   {
  102.     /* gcc uses crtbegin.o to find the start of
  103.        the constructors, so we make sure it is
  104.        first.  Because this is a wildcard, it
  105.        doesn't matter if the user does not
  106.        actually link against crtbegin.o; the
  107.        linker won't look for a file to match a
  108.        wildcard.  The wildcard also means that it
  109.        doesn't matter which directory crtbegin.o
  110.        is in.  */
  111.     KEEP (*crtbegin.o(.ctors))
  112.     KEEP (*crtbegin?.o(.ctors))
  113.     /* We don't want to include the .ctor section from
  114.        the crtend.o file until after the sorted ctors.
  115.        The .ctor section from the crtend file contains the
  116.        end of ctors marker and it must be last */
  117.     KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
  118.     KEEP (*(SORT(.ctors.*)))
  119.     KEEP (*(.ctors))
  120.   }
  121.   .dtors          :
  122.   {
  123.     KEEP (*crtbegin.o(.dtors))
  124.     KEEP (*crtbegin?.o(.dtors))
  125.     KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
  126.     KEEP (*(SORT(.dtors.*)))
  127.     KEEP (*(.dtors))
  128.   }
  129.   .jcr            : { KEEP (*(.jcr)) }
  130.   .data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) }
  131.   .dynamic        : { *(.dynamic) }
  132.   .got            : { *(.got) *(.igot) }
  133.   . = DATA_SEGMENT_RELRO_END (24, .);
  134.   .got.plt        : { *(.got.plt)  *(.igot.plt) }
  135.   .data           :
  136.   {
  137.     *(.data .data.* .gnu.linkonce.d.*)
  138.     SORT(CONSTRUCTORS)
  139.   }
  140.   .data1          : { *(.data1) }
  141.   _edata = .; PROVIDE (edata = .);
  142.   __bss_start = .;
  143.   .bss            :
  144.   {
  145.    *(.dynbss)
  146.    *(.bss .bss.* .gnu.linkonce.b.*)
  147.    *(COMMON)
  148.    /* Align here to ensure that the .bss section occupies space up to
  149.       _end.  Align after .bss to ensure correct alignment even if the
  150.       .bss section disappears because there are no input sections.
  151.       FIXME: Why do we need it? When there is no .bss section, we don't
  152.       pad the .data section.  */
  153.    . = ALIGN(. != 0 ? 64 / 8 : 1);
  154.   }
  155.   .lbss   :
  156.   {
  157.     *(.dynlbss)
  158.     *(.lbss .lbss.* .gnu.linkonce.lb.*)
  159.     *(LARGE_COMMON)
  160.   }
  161.   . = ALIGN(64 / 8);
  162.   .lrodata   ALIGN(CONSTANT (MAXPAGESIZE)) + (. & (CONSTANT (MAXPAGESIZE) - 1)) :
  163.   {
  164.     *(.lrodata .lrodata.* .gnu.linkonce.lr.*)
  165.   }
  166.   .ldata   ALIGN(CONSTANT (MAXPAGESIZE)) + (. & (CONSTANT (MAXPAGESIZE) - 1)) :
  167.   {
  168.     *(.ldata .ldata.* .gnu.linkonce.l.*)
  169.     . = ALIGN(. != 0 ? 64 / 8 : 1);
  170.   }
  171.   . = ALIGN(64 / 8);
  172.   _end = .; PROVIDE (end = .);
  173.   . = DATA_SEGMENT_END (.);
  174.   /* Stabs debugging sections.  */
  175.   .stab          0 : { *(.stab) }
  176.   .stabstr       0 : { *(.stabstr) }
  177.   .stab.excl     0 : { *(.stab.excl) }
  178.   .stab.exclstr  0 : { *(.stab.exclstr) }
  179.   .stab.index    0 : { *(.stab.index) }
  180.   .stab.indexstr 0 : { *(.stab.indexstr) }
  181.   .comment       0 : { *(.comment) }
  182.   /* DWARF debug sections.
  183.      Symbols in the DWARF debugging sections are relative to the beginning
  184.      of the section so we begin them at 0.  */
  185.   /* DWARF 1 */
  186.   .debug          0 : { *(.debug) }
  187.   .line           0 : { *(.line) }
  188.   /* GNU DWARF 1 extensions */
  189.   .debug_srcinfo  0 : { *(.debug_srcinfo) }
  190.   .debug_sfnames  0 : { *(.debug_sfnames) }
  191.   /* DWARF 1.1 and DWARF 2 */
  192.   .debug_aranges  0 : { *(.debug_aranges) }
  193.   .debug_pubnames 0 : { *(.debug_pubnames) }
  194.   /* DWARF 2 */
  195.   .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
  196.   .debug_abbrev   0 : { *(.debug_abbrev) }
  197.   .debug_line     0 : { *(.debug_line) }
  198.   .debug_frame    0 : { *(.debug_frame) }
  199.   .debug_str      0 : { *(.debug_str) }
  200.   .debug_loc      0 : { *(.debug_loc) }
  201.   .debug_macinfo  0 : { *(.debug_macinfo) }
  202.   /* SGI/MIPS DWARF 2 extensions */
  203.   .debug_weaknames 0 : { *(.debug_weaknames) }
  204.   .debug_funcnames 0 : { *(.debug_funcnames) }
  205.   .debug_typenames 0 : { *(.debug_typenames) }
  206.   .debug_varnames  0 : { *(.debug_varnames) }
  207.   /* DWARF 3 */
  208.   .debug_pubtypes 0 : { *(.debug_pubtypes) }
  209.   .debug_ranges   0 : { *(.debug_ranges) }
  210.   .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
  211.   /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
  212. }
  213.